<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>输出导航菜单</title>
<style>
ul{
list-style:none;
height:30px;
line-height:30px;}
li{
float:left;
margin:auto 30px;}
.item{
font-family:微软雅黑;
font-size:16px;
font-weight:600;
}
.separator:not(:last-child){
width:1px;
height:16px;
background:#999999; margin:7px auto;
}
</style>
<script src="../JS/vue.js"></script>
</head>
<body>
<div id="box">
	<ul>
		<template v-for="menu in menulist">
			<li class="item">{{menu}}</li>
			<li class="separator"></li>
		</template>
	</ul>
</div>
<script type="text/javascript">
    var demo = new Vue({
        el : '#box',
        data : {
			menulist : ['首页','闪购','生鲜','团购','全球购']//定义导航菜单数组
		}
    });
</script>
</body>
</html>